package com.zhentao.service;

import com.zhentao.utils.Result;
import com.zhentao.dto.LoginFormDTO;
import com.zhentao.dto.RegisterFormDTO;
import com.zhentao.dto.UpdateUserDTO;
import com.zhentao.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import jakarta.servlet.http.HttpSession;

/**
* @author LENOVO
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2025-08-10 22:29:30
*/
public interface UserService extends IService<User> {
    Result sendCode(String phone, HttpSession session);

    Result login(LoginFormDTO loginForm, HttpSession session);

    Result sign();

    Result signCount();

    /**
     * 用户注册
     */
    Result register(RegisterFormDTO registerForm, HttpSession session);

    /**
     * 修改个人信息
     */
    Result updateUserInfo(UpdateUserDTO updateUserDTO);
}
